home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
03
/
1
/
DISK0317.ZIP
/
PMB15.BAK
< prev
next >
Wrap
Text File
|
1987-01-11
|
4KB
|
106 lines
PMB - Preventive Maintanence, Bill, and Message Program
-------------------------------------------------------
This program provides a way of keeping track of events which
occur periodically such as bills, preventive maintanence items,
dentist appointments, yearly vet checks for the family animal,
and once-only items such as important meetings planned far in
advance. The program is designed to be operated weekly and, when
requested, will print out the items due in the following two
weeks. To operate, you must create two files with an editor or
with BASICA. The file structure is ASCII in a format which
almosts resembles a program to BASICA. This format lets you edit
the file, should you ever need to, using BASICA rather than an
editor. Therefore, the disk containing your files need not have
both an editor and BASICA.
First, enter BASICA and type the following:
1 '
2 ,"CARNAME1","CARNAME2","CARNAME3","CARNAME4",NCAR
The first line is a comment line and will be filled by PMB
each time you save an updated file.
The second line contains a set of 1-4 string names of the
vehicles that you want to place on a mileage-based maintanence
schedule. NCAR is a single digit number of the number of
significant names desired (1,2,3 or 4). Use two double qoutes
for empty entries.
Then type SAVE "ITEMDATA.DAT",A to save the file. REMEMBER
TO APPEND THE 'A' OPTION TO SAVE AN ASCII FILE. Also create a
backup file: SAVE "ITEMDATA.BAK",A
For example, use:
1 '
2 ,"FORD","CHEVY","HONDA","",3
SAVE "ITEMDATA.DAT",A
SAVE "ITEMDATA.BAK",A
LOAD "PMB
RUN
At this point, you can run the program. It should
automatically load the data file and list the commands available.
Test the program by inserting, with the I command, the items
below:
Enter Command: ? I
The program then prints out the instructions for the command
and:
Enter type: ? 1
Enter message: v...........................................v
Time for income tax
Enter Month: ? 2
Enter Day: ? 1
Enter last two digits of year: ? 84
The program should then print:
Num Type TrigNo Para-1 .........Comment........
=== ==== ====== ====== ========================
1 1 1492 0 2/1/84 = Time for income tax
Then save the file with the "S" command. When you load and
run the program, it should only display the once-only message if
the date is within one week of the date given, or later. It will
then continue to display the message each time you run the
program until you kill (K) the message.
When you save the datafile, (S), the program will add a
comment line in line 1 with the creation date and the items you
have inserted, (I). If you then exit, (E) and load itemdata.dat
and list it, you should get:
1 'ITEMDATA.DAT - Data file for PMB as of <what ever the date is>
2 ,"FORD","CHEVY","HONDA","",3
3 , 1 , 1492 ,"2/1/84 = Time for income tax", 0 , 0 , 0
The line number is to allow you to use the BASICA editor if
you want to modify the file. In line 3, the next number is the
item type, 1 means one-shot message, no renewal. The 1492 is the
number of days after 1 Jan 1980 (Its NOT Julian, but then, so
what?) The last 3 numbers are parameters, only one is used. The
remainder are there for growth.
You can try some other examples and change the date with the
D command to test the results.
Roger Coleman
2011 Bradway st NE
Palm Bay, Fl 32905